const http = uni.$u.http


// 查询活动
export const getElectionPageList = (data) => {
	let {
		pageNo,
		pageSize,
	} = data
	return http.post('', {
		serviceName: 'DaoElectionService',
		methodName: 'getPageList',
		bizParams: {
			...data
		},
		pagination: {
			pageNum: pageNo,
			pageSize
		}
	})
}


// 详情
export const getElectionDetail = (data) => {
	return http.post('', {
		serviceName: 'DaoElectionService',
		methodName: 'getDetail',
		bizParams: {
			...data
		}
	})
}